package com.hgkj.cloud.base.service;

import com.github.pagehelper.Page;
import com.hgkj.cloud.base.domain.SysTestingQuestionType;

import java.util.List;
import java.util.Map;

public interface SysTestingQuestionTypeService {

    List<SysTestingQuestionType> listTodayRecommend();

    Page<SysTestingQuestionType> getChildQuestionType(Integer pageNum, Integer pageSize, Map<String, Object> map);

    List<SysTestingQuestionType> getChildQuestionTypesByParentId(Integer parentId);

    int updatePercentageAndPraise(Map<String, Object> map);

    SysTestingQuestionType getTestQuestionTypeById(Integer typeId);

    Page<SysTestingQuestionType> getFavoriteByUser(Integer pageNum,Integer pageSize,String userUuid);

    int getCountForTesting(Map<String, Object> map);

    List<SysTestingQuestionType> getChildQuestionTypesNoParentId();

    List<SysTestingQuestionType> getChildQuestionType(Integer parentId);

    int insertQuestionType(SysTestingQuestionType type) ;

    List<Map> getAllTest(Integer page,Integer pageSize);
    Map getTestById(Long id);

    void updatetest(Map map);
}
